home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / ch_5.7 / eh_sgl / eh_sgl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-11  |  869 b   |  36 lines

  1. /* 
  2.  * eh_sgl.h
  3.  * 
  4.  * Practical Algorithms for Image Analysis
  5.  * 
  6.  * Copyright (c) 1997, 1998, 1999 MLMSoftwareGroup, LLC
  7.  */
  8.  
  9. #ifndef _EH_SGL_H_
  10. #define    _EH_SGL_H_
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <math.h>
  15. #include <fcntl.h>
  16. #include <memory.h>
  17. #include <sys/types.h>
  18. #include <sys/stat.h>
  19. #include <string.h>
  20. #include "ip.h"
  21.  
  22. /* function prototypes */
  23. extern void usage (char *progname);
  24. extern void skip_n_lines (FILE * file_pointer, int n_lines_to_skip);
  25. #if defined(LINUX)
  26. extern int compare (float *t1, float *t2);
  27. #else
  28. extern int compare (const void *t1, const void *t2);
  29. #endif
  30. extern double find_mean (float *data, int n);
  31. extern double find_sigma (float *data, int n, double mean);
  32. extern void construct_hist (int n, float *data, float *hist, double bw, double data_base);
  33. extern void main (int argc, char *argv[]);
  34.  
  35. #endif /* _EH_SGL_H_ */
  36.